<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateColumnFunsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('column_funs', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 100)->comment('栏目名称');
            $table->string('title', 100)->nullable()->comment('栏目显示名');
            $table->integer('sp_id')->default(0)->nullable()->unsigned()->comment('服务商Id');
            $table->integer('ogroup_id')->default(0)->nullable()->unsigned()->comment('渠道ID');
            $table->string('onclick')->nullable()->comment('onclick');
            $table->string('restful')->nullable()->comment('restful');
            $table->string('description')->nullable()->comment('描述');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('column_funs');
    }
}
